﻿class BallBounce

{

    static void Main()

    {

        double height = 100.0;

        double totalDistance = height;

        int bounceCount = 10;



        for (int i = 1; i < bounceCount; i++)

        {

            height /= 2.0;

            totalDistance += 2 * height;

        }



        height /= 2.0; // Height after 10th bounce



        Console.WriteLine(totalDistance);

        Console.WriteLine(height);

    }

}